import _fetch from './request'

// 获取题目列表
function getQuestionList(params) {
    return _fetch({
        url: '/question/list',
        params
    })
}

// 新增试题
function addQuestion(data) {
    return _fetch({
        url: '/question/add',
        method: 'post',
        data
    })
}

//编辑题目
function editQuestion(data) {
    return _fetch({
        url: '/question/edit',
        method: 'post',
        data
    })
}

//设置题目状态
function setWQuestionStatus(data){
    return _fetch({
        url: '/question/status',
        method: 'post',
        data
    })
}

// 删除题目
function removeQuestion(data){
    return _fetch({
        url: '/question/remove',
        method: 'post',
        data
    })
}

export {
    getQuestionList,
    addQuestion,
    editQuestion,
    setWQuestionStatus,
    removeQuestion
}